package com.imc.bo.impl;

import org.springframework.beans.factory.annotation.Autowired;

import com.imc.bo.RoleBo;
import com.imc.dao.RoleDao;
import com.imc.domain.Role;

public class RoleBoImpl implements RoleBo {

	@Autowired
	RoleDao roleDao;

	public void setPersonDao(RoleDao roleDao) {
		this.roleDao = roleDao;
	}

	public void delete(Role role) {
		roleDao.delete(role);

	}

	public Role findByRoleId(long roleId) {
		return roleDao.findByRoleId(roleId);
	}

	public void save(Role role) {
		roleDao.save(role);

	}

	public void update(Role role) {
		roleDao.update(role);

	}

}
